import VueRouter from 'vue-router'
import Home from './component/Home.vue'
import Member from './component/Member.vue'
import ShopCart from './component/ShopCart.vue'
import Search from './component/Search.vue'
import newList from './component/news/newList.vue'
import newInfo from './component/news/newInfo.vue'
import pictureShare from './component/picture/pictureList.vue'

const router = new VueRouter({
  routes: [
    {path:'/',redirect:"/home"},
    {path:'/home',component:Home},
    {path:'/member',component:Member},
    {path:'/shopcart',component:ShopCart},
    {path:'/search',component:Search},
    {path:'/home/newList',component:newList},
    {path:'/home/newInfo/:id',component:newInfo},
    {path:'/home/pictureShare',component:pictureShare},
  ],
  linkActiveClass: "mui-active"
})

export default router